import os

BASE_DIR = os.path.dirname(__file__)


class Memorandum:
    ability_name = 'MainAbility'
    bundle_name = 'com.ohos.note'
    window_name = 'note'
    # 左上角返回键
    back = (54, 102)
    # 左上角打开和收起菜单
    open_menu = (72, 128)
    close_menu = (55, 130)
    # 右上角 +
    add_note = (648, 128)
    # 右上角 √
    save_note = (665, 100)
    # 右上角删除
    del_note = (665, 100)
    # 置顶
    topping_menu = (90, 1155)
    # 底部删除按钮
    delete_menu = (270, 1155)
    # 移动图标
    move_menu = (450, 1155)
    # 多选
    multi_select_menu = (630, 1155)
    # 最近删除点进笔记里面的删除
    delete_in_note_from_dustbin = (225, 1155)
    # 最近删除主界面底部的删除
    delete_in_dustbin_main_page = (180, 1155)
    # 恢复笔记
    recover_from_dustbin = (495, 1155)

    # 新建文件夹输入框
    new_folder_input_area = (224, 1030)
    # 笔记输入框
    content_area = (360, 640)
    content_start = (55, 240)
    chehui = (520, 105)
    qianjin = (590, 105)
    all_note = (144, 288)
    not_classified = (132, 372)
    personal = (120, 456)
    life = (120, 540)
    work = (144, 288)
    my_favor = (144, 1073)
    recent_delete = (144, 1157)
    # 笔记右上角的收藏图标区域
    favor_area = (576, 84, 612, 120)

    # style
    style_area = (90, 809, 630, 1208)
    close_style = (582, 851)
    # 蛋糕笔记置顶图标区域
    top_area = (60, 539, 594, 595)

    BASE_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'snapshot', 'note')
    favored_pic = os.path.join(BASE_DIR, 'note_favored.jpeg')
    unfavored_pic = os.path.join(BASE_DIR, 'note_unfavored.jpeg')
    edit_folder_menu_pic = os.path.join(BASE_DIR, 'note_edit_folder_menu.jpeg')
    top_pic = os.path.join(BASE_DIR, 'top.jpeg')
    style_pic = os.path.join(BASE_DIR, 'style.jpeg')
    add_pic = os.path.join(BASE_DIR, 'add_pic.jpeg')
    listitem_pic = os.path.join(BASE_DIR, 'ListItem.jpeg')
